﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using PPI.General;
using PPI.WebConsumer.PPI.Svc;

namespace PPI.WebConsumer
{
    public class WUser
    {
        public static DataSet GetAll()
        {
            ConfigReader reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return svc.Users_GetAll(reader.ConectionMode);
        }

        public static Int32 Save(Int32 idUser,string username, string password, bool isAdministrator)
        {
            ConfigReader reader = ConfigReader.GetInstance();
            PPI.Svc.Service1 svc = new Service1();
            return svc.Users_Save(idUser, username, password, isAdministrator, reader.ConectionMode);

        }
    }
}
